package com.brick.util;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.UUID;

public class Util {
    private Util(){};
    public final static Util util = new Util();

    /**
     * 返回唯一id
     * @return
     */
    public String getUUID(){
        return UUID.randomUUID().toString().replace("-", "").toLowerCase();
    }

    public String getDateNow(){
        Date date = new Date();
        SimpleDateFormat dateFormat= new SimpleDateFormat("yyyy-MM-dd :HH:mm:ss");
        return dateFormat.format(date);
    }
}
